package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商用户对象 supply_user
 *
 * @author ruoyi
 * @date 2025-09-10
 */
public class SupplyUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 登录密码 */
    private String pwd;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String type;

    /** 供货商ID */
    private Long supplyId;

    /** 供货商名称 */
    @Excel(name = "供货商名称")
    private String supplyName;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 头像照片 */
    @Excel(name = "头像照片")
    private String head;

    /** 是否在用 */
    @Excel(name = "是否在用")
    private String status;

    private String contact;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setPwd(String pwd)
    {
        this.pwd = pwd;
    }

    public String getPwd()
    {
        return pwd;
    }

    public void setCtime(Date ctime)
    {
        this.ctime = ctime;
    }

    public Date getCtime()
    {
        return ctime;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public void setSupplyId(Long supplyId)
    {
        this.supplyId = supplyId;
    }

    public Long getSupplyId()
    {
        return supplyId;
    }

    public void setSupplyName(String supplyName)
    {
        this.supplyName = supplyName;
    }

    public String getSupplyName()
    {
        return supplyName;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setHead(String head)
    {
        this.head = head;
    }

    public String getHead()
    {
        return head;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("phone", getPhone())
                .append("pwd", getPwd())
                .append("ctime", getCtime())
                .append("type", getType())
                .append("supplyId", getSupplyId())
                .append("supplyName", getSupplyName())
                .append("name", getName())
                .append("head", getHead())
                .append("status", getStatus())
                .toString();
    }
}
